package com.example.badyloans.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Collection;

@ApiModel(value="com-example-badyloans-pojo-TRepaymentDetail")
public class TRepaymentDetail implements Serializable {
    /**
    * id
    */
    @ApiModelProperty(value="id")
    private String id;

    /**
    * 标的id
    */
    @ApiModelProperty(value="标的id")
    private String bidId;

    /**
    * 借款id
    */
    @ApiModelProperty(value="借款id")
    private String borrowId;

    /**
    * 还款id
    */
    @ApiModelProperty(value="还款id")
    private String repaymentId;

    /**
    * 借款人id
    */
    @ApiModelProperty(value="借款人id")
    private String borrowUserId;

    /**
    * 投标人id
    */
    @ApiModelProperty(value="投标人id")
    private String bidUserId;

    /**
    * 借款标题
    */
    @ApiModelProperty(value="借款标题")
    private String borrowTitle;

    /**
    * 本期还款总金额(利息+本金)(单位：分)
    */
    @ApiModelProperty(value="本期还款总金额(利息+本金)(单位：分)")
    private Long totalAmount;

    /**
    * 本期还款本金(单位；分)
    */
    @ApiModelProperty(value="本期还款本金(单位；分)")
    private Long principal;

    /**
    * 本期还款总利息(单位：分)
    */
    @ApiModelProperty(value="本期还款总利息(单位：分)")
    private Long interest;

    /**
    * 还款期数(第几月还款)
    */
    @ApiModelProperty(value="还款期数(第几月还款)")
    private Integer period;

    /**
    * 本期还款截止日期
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value="本期还款截止日期")
    private LocalDateTime deadline;

    /**
    * 还款时间
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value="还款时间")
    private LocalDateTime repaymentTime;

    /**
    * 还款方式
    */
    @ApiModelProperty(value="还款方式")
    private Integer repaymentType;

    /**
    * 创建时间
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createTime;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getBidId() {
        return bidId;
    }

    public void setBidId(String bidId) {
        this.bidId = bidId;
    }

    public String getBorrowId() {
        return borrowId;
    }

    public void setBorrowId(String borrowId) {
        this.borrowId = borrowId;
    }

    public String getRepaymentId() {
        return repaymentId;
    }

    public void setRepaymentId(String repaymentId) {
        this.repaymentId = repaymentId;
    }

    public String getBorrowUserId() {
        return borrowUserId;
    }

    public void setBorrowUserId(String borrowUserId) {
        this.borrowUserId = borrowUserId;
    }

    public String getBidUserId() {
        return bidUserId;
    }

    public void setBidUserId(String bidUserId) {
        this.bidUserId = bidUserId;
    }

    public String getBorrowTitle() {
        return borrowTitle;
    }

    public void setBorrowTitle(String borrowTitle) {
        this.borrowTitle = borrowTitle;
    }

    public Long getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(Long totalAmount) {
        this.totalAmount = totalAmount;
    }

    public Long getPrincipal() {
        return principal;
    }

    public void setPrincipal(Long principal) {
        this.principal = principal;
    }

    public Long getInterest() {
        return interest;
    }

    public void setInterest(Long interest) {
        this.interest = interest;
    }

    public Integer getPeriod() {
        return period;
    }

    public void setPeriod(Integer period) {
        this.period = period;
    }

    public LocalDateTime getDeadline() {
        return deadline;
    }

    public void setDeadline(LocalDateTime deadline) {
        this.deadline = deadline;
    }

    public LocalDateTime getRepaymentTime() {
        return repaymentTime;
    }

    public void setRepaymentTime(LocalDateTime repaymentTime) {
        this.repaymentTime = repaymentTime;
    }

    public Integer getRepaymentType() {
        return repaymentType;
    }

    public void setRepaymentType(Integer repaymentType) {
        this.repaymentType = repaymentType;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", bidId=").append(bidId);
        sb.append(", borrowId=").append(borrowId);
        sb.append(", repaymentId=").append(repaymentId);
        sb.append(", borrowUserId=").append(borrowUserId);
        sb.append(", bidUserId=").append(bidUserId);
        sb.append(", borrowTitle=").append(borrowTitle);
        sb.append(", totalAmount=").append(totalAmount);
        sb.append(", principal=").append(principal);
        sb.append(", interest=").append(interest);
        sb.append(", period=").append(period);
        sb.append(", deadline=").append(deadline);
        sb.append(", repaymentTime=").append(repaymentTime);
        sb.append(", repaymentType=").append(repaymentType);
        sb.append(", createTime=").append(createTime);
        sb.append("]");
        return sb.toString();
    }
}